raiseToOrNull

inline fun IrType.raiseToOrNull(predicate: (IrType) -> Boolean): IrType?
fun IrType.raiseToOrNull(classifier: IrClassifierSymbol): IrType?

Gets the lowest superclass or this that matches the predicate, or null if none do. Helpful for discovering the type parameters of supertypes.

Uses supertypesWithSubstitution